﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script type="text/javascript">
        var hotnews_timeout = null;
        var hotnews_index = 0;
        function viewHotNews(index) {
            if (hotnews_timeout != null) {
                clearTimeout(hotnews_timeout);
            }
            var $row = $('#news_view li');
            var $row_list = $('#news_view_list a');
            if ($row.length > 1) {
                hotnews_index = (index + 1) >= $row.length ? 0 : index + 1;
                $row.eq(index).animate({ top: '-25px' }, 500, function () {
                    $row.eq(index).css({ top: '25px' });
                    $row_list.eq(index).removeClass('active');
                    $row.eq(hotnews_index).animate({ top: '0px' }, 500, function () {
                        $row_list.eq(hotnews_index).addClass('active');
                        hotnews_timeout = setTimeout('viewHotNews(' + hotnews_index + ')', 5000);
                    });
                });
            }
        }


        $(function () {
            $.ajax({
                type: "GET",
                url: "/handler/ContentHandler.ashx",
                data: { t: 'GetListNotify' },
                contentType: "application/json;charset=utf-8",
                dataType: "json",
                cache: false,
                success: function (data) {
                    if (data != null && data.TotalRecord > 0) {
                        var _html = '<ul id="news_view" class="news-view">';
                        for (var i = 0; i < data.TotalRecord; i++) {
                            _html += '<li>';
                            _html += '<a';
                            if (data.Items[i].Link == '' || data.Items[i].Link == null) {
                                _html += ' href="javascript:;">';
                            } else {
                                _html += ' href="' + data.Items[i].Link + '">';
                            }
                            _html += '<span style="color:Red;font-weight:bold;font-size: 120%;">';
                            _html += data.Items[i].Title + '</span></a>';
                            _html += '</li>';
                        }

                        _html += '</ul>';
                        $('#news_hot').html(_html);

                        hotnews_timeout = setTimeout('viewHotNews(0)', 2000);
                        $('#news_view li a').hover(function () {
                            if (hotnews_timeout != null) {
                                clearTimeout(hotnews_timeout);
                            }


                        }, function () {
                            hotnews_timeout = setTimeout('viewHotNews(' + hotnews_index + ')', 2000);
                        })
                    }
                }
            });
        });
</script>
    <div class="slide">
        <div class="listslide">
            <div class="slider-wrapper theme-default">
                <div class="ribbon"></div>
                <div id="slider" class="nivoSlider" style="position: relative; height: 255px; background-image: url(50e9771c-9674-4cc5-aefc-831073cb7e89.jpg); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; background-position: initial initial; background-repeat: no-repeat no-repeat; ">
                <a href="" class="nivo-imageLink" style="display: block; "><img src="7d6bbc02-92dc-403f-a2ce-833470361379.jpg" alt="" width="710" height="255" style="display: none; "></a><a href="" class="nivo-imageLink" style="display: none; "><img src="c935c979-91c9-4819-98a2-11bb269c2e2f.jpg" alt="" width="710" height="255" style="display: none; "></a><a href="/kiem-tien" class="nivo-imageLink" style="display: none; "><img src="ac58b286-34df-4cfc-aee3-5f827607852d.jpg" alt="" width="710" height="255" style="display: none; "></a><a href="huongdan.aspx" class="nivo-imageLink" style="display: none; "><img src="50e9771c-9674-4cc5-aefc-831073cb7e89.jpg" alt="" width="710" height="255" style="display: none; "></a>
            <div class="nivo-caption" style="opacity: 0; "><p></p></div><div class="nivo-directionNav" style="display: none; "><a class="nivo-prevNav">Prev</a><a class="nivo-nextNav">Next</a></div><div class="nivo-controlNav"><a class="nivo-control active" rel="0">1</a><a class="nivo-control" rel="1">2</a><a class="nivo-control" rel="2">3</a><a class="nivo-control" rel="3">4</a></div><div class="nivo-slice" style="left: 0px; width: 47px; background-image: url(http://5bid.vn/photoservices/advertisement/2012/8/7d6bbc02-92dc-403f-a2ce-833470361379.jpg); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; bottom: 0px; height: 100%; opacity: 1; background-position: 0px 0%; background-repeat: no-repeat no-repeat; "></div><div class="nivo-slice" style="left: 47px; width: 47px; background-image: url(http://5bid.vn/photoservices/advertisement/2012/8/7d6bbc02-92dc-403f-a2ce-833470361379.jpg); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; bottom: 0px; height: 100%; opacity: 1; background-position: -47px 0%; background-repeat: no-repeat no-repeat; "></div><div class="nivo-slice" style="left: 94px; width: 47px; background-image: url(http://5bid.vn/photoservices/advertisement/2012/8/7d6bbc02-92dc-403f-a2ce-833470361379.jpg); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; bottom: 0px; height: 100%; opacity: 1; background-position: -94px 0%; background-repeat: no-repeat no-repeat; "></div><div class="nivo-slice" style="left: 141px; width: 47px; background-image: url(http://5bid.vn/photoservices/advertisement/2012/8/7d6bbc02-92dc-403f-a2ce-833470361379.jpg); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; bottom: 0px; height: 100%; opacity: 1; background-position: -141px 0%; background-repeat: no-repeat no-repeat; "></div><div class="nivo-slice" style="left: 188px; width: 47px; background-image: url(http://5bid.vn/photoservices/advertisement/2012/8/7d6bbc02-92dc-403f-a2ce-833470361379.jpg); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; bottom: 0px; height: 100%; opacity: 1; background-position: -188px 0%; background-repeat: no-repeat no-repeat; "></div><div class="nivo-slice" style="left: 235px; width: 47px; background-image: url(http://5bid.vn/photoservices/advertisement/2012/8/7d6bbc02-92dc-403f-a2ce-833470361379.jpg); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; bottom: 0px; height: 100%; opacity: 1; background-position: -235px 0%; background-repeat: no-repeat no-repeat; "></div><div class="nivo-slice" style="left: 282px; width: 47px; background-image: url(http://5bid.vn/photoservices/advertisement/2012/8/7d6bbc02-92dc-403f-a2ce-833470361379.jpg); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; bottom: 0px; height: 100%; opacity: 1; background-position: -282px 0%; background-repeat: no-repeat no-repeat; "></div><div class="nivo-slice" style="left: 329px; width: 47px; background-image: url(http://5bid.vn/photoservices/advertisement/2012/8/7d6bbc02-92dc-403f-a2ce-833470361379.jpg); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; bottom: 0px; height: 100%; opacity: 1; background-position: -329px 0%; background-repeat: no-repeat no-repeat; "></div><div class="nivo-slice" style="left: 376px; width: 47px; background-image: url(http://5bid.vn/photoservices/advertisement/2012/8/7d6bbc02-92dc-403f-a2ce-833470361379.jpg); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; bottom: 0px; height: 100%; opacity: 1; background-position: -376px 0%; background-repeat: no-repeat no-repeat; "></div><div class="nivo-slice" style="left: 423px; width: 47px; background-image: url(http://5bid.vn/photoservices/advertisement/2012/8/7d6bbc02-92dc-403f-a2ce-833470361379.jpg); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; bottom: 0px; height: 100%; opacity: 1; background-position: -423px 0%; background-repeat: no-repeat no-repeat; "></div><div class="nivo-slice" style="left: 470px; width: 47px; background-image: url(http://5bid.vn/photoservices/advertisement/2012/8/7d6bbc02-92dc-403f-a2ce-833470361379.jpg); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; bottom: 0px; height: 100%; opacity: 1; background-position: -470px 0%; background-repeat: no-repeat no-repeat; "></div><div class="nivo-slice" style="left: 517px; width: 47px; background-image: url(http://5bid.vn/photoservices/advertisement/2012/8/7d6bbc02-92dc-403f-a2ce-833470361379.jpg); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; bottom: 0px; height: 100%; opacity: 1; background-position: -517px 0%; background-repeat: no-repeat no-repeat; "></div><div class="nivo-slice" style="left: 564px; width: 47px; background-image: url(http://5bid.vn/photoservices/advertisement/2012/8/7d6bbc02-92dc-403f-a2ce-833470361379.jpg); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; bottom: 0px; height: 100%; opacity: 1; background-position: -564px 0%; background-repeat: no-repeat no-repeat; "></div><div class="nivo-slice" style="left: 611px; width: 47px; background-image: url(http://5bid.vn/photoservices/advertisement/2012/8/7d6bbc02-92dc-403f-a2ce-833470361379.jpg); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; bottom: 0px; height: 100%; opacity: 1; background-position: -611px 0%; background-repeat: no-repeat no-repeat; "></div><div class="nivo-slice" style="left: 658px; width: 52px; background-image: url(http://5bid.vn/photoservices/advertisement/2012/8/7d6bbc02-92dc-403f-a2ce-833470361379.jpg); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; bottom: 0px; height: 100%; opacity: 1; background-position: -658px 0%; background-repeat: no-repeat no-repeat; "></div></div>
        </div>
        <!-- end slider-->
        </div>
    </div>
    <div class="botslide"></div>
    <div class="content"></div>
</asp:Content>

